import uvicorn
from fastapi import FastAPI

from models.labels.content_label import ContentLabel

app = FastAPI()

content = ContentLabel()


@app.get("/")
def read_root():
    return "hello"


@app.post("/content_label")
def content_label():
    # 制作内容画像
    content.make_content_labels()
    return "ok"


@app.post("/content_label/decay_temp")
def content_label_decay_temp():
    content.decay_hot_heat()
    return "ok"


if __name__ == '__main__':
    uvicorn.run(app="main:app", host="127.0.0.1", port=8001, reload=True)
